Titles like this, English has been cut off, in addition to using pictures, is there any good solution to ask for help?

clipboard.png

is followed by a background image, not a solid color

Feb.09,2022

can be implemented in overflow:hidden, and any picture can be placed in the background


<div class="wrapper">
    <div class="word">

ABOUT<span></span>

</div> </div> <style> .wrapper{ width: 250px; height: 100px; background: url(http://t2.hddhhn.com/uploads/tu/201610/198/hkgip2b102z.jpg) 57%; color: -sharpfff; } .wrapper .word{ transform: rotateZ(30deg); overflow: hidden; width: 107px; font-size:35px; } .wrapper .word p{ position: relative; transform: rotateZ(-30deg); } .word span{ position: absolute; right: -30px; top: 13px; height: 36px; width: 24px ; border-left: 2px solid -sharpfff; transform: rotateZ(30deg); } </style>




div


csscssz-index

.

clipboard.png

Source code: RunJS


There are many

methods, and you can also use pseudo element to mask part of the right

.
<div class="content">ABCDEF</div>
<style>
 .content {
  width: 155px;
  height: 100px;
  line-height: 100px;
  text-align: center;
  font-size: 30px;
  background: -sharp365972;
  position: relative;
  overflow: hidden;
}
.content::before {
  position: absolute;
  content: ' ';
  width: 36px;
  height: 118px;
  background: -sharp365972;
  left: 120px;
  top: 0;
  border-left: 2px solid -sharpffffff;
  transform: rotate(30deg);
}
</style>

write a style, and then tilt it; it's easier to write a style than a picture

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b40c3d-2c531.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b40c3d-2c531.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?