How to design shopping pictures with css
code:
FAQ: when filling in the background, the image size is inconsistent, repeated and so on. It is recommended to add the background image directly in the div without img tag when inserting the image, which is conducive to the change of the background image.
Insert picture:background-image: url(../img/product-auto/benz-amg-s63-01.j ...
Posted by SapAuthor on Sat, 02 May 2020 00:51:47 -0700
Class foundation and data attribute (python)
Reference connection: http://www.cnblogs.com/wilber2013/p/4677412.html
class Student(object):
count = 0
books = []
def __int__(self,name,age):
self.name = name
self.age = age
pass #do nothing, an empty statement, ensures the integrity of format and semantics
Data properties
In the above Student class, &quo ...
Posted by Codein on Fri, 01 May 2020 18:47:40 -0700
New features of C × 9: code generator, compile time reflection
Preface
Today, the official blog of. NET announced the release of the first preview version of C 9 source generators, a feature that users have been shouting for nearly 5 years, and finally released today.
brief introduction
Source Generators, as the name implies, allows developers to get and view user code during code compilation and generat ...
Posted by businessman332211 on Fri, 01 May 2020 14:48:51 -0700
JavaScript (3) - timer, form validation
When outputting strings and variables, strings must be quoted, variables written directly, and connected with connectors. 1.Date object
new.Date() gets the current system date
new.Date.getFullYear() returns the year in four digits
new.Date.getMonth() returns the month < 0 ~ 11 >
new.Date.getDate() returns a day of a month < 1 ~ 31 ...
Posted by suresh64633 on Fri, 01 May 2020 10:36:38 -0700
Vue family bucket practice (4) --- Vue router
Recently, the company wants to rewrite the operation management system. It doesn't want to maintain the previous backbone anymore. It needs to rewrite the whole front-end quickly. It took more than two weeks to re open the new pit, and the first edition was published. It was a great harvest. In practice, learning is ...
Posted by BigTime on Fri, 01 May 2020 09:11:50 -0700
Use Gson to parse complex and abnormal Json data (including Chinese key)
Original address: http://www.cnblogs.com/bianmajiang/p/3998083.html
Interface documentation:
Request data
json={"uid":"","sid":"","ver":"1",
"request":{}
}
1
2
3
Return data
{"ret":0,
"response":{
"tag_category":{
"Chinese Painting":{
"years":["Pre Qin and Han Dynasties","Chu state in the Warr ...
Posted by ultimachris on Fri, 01 May 2020 08:50:32 -0700
[PHP] design pattern factory pattern
Factory Method: define an interface for creating objects, and let subclasses decide which class to instantiate. Factory Method delays the instantiation of a class to its subclasses.
Factory mode: generate different class instances according to different parameters.
Factory pattern is divided into simple factory pattern, factory method pattern a ...
Posted by imurkid on Fri, 01 May 2020 08:39:15 -0700
Five ways to achieve CSS element horizontal center, practical and simple!
1. General method - fixed width element
html part:
<div class="container">
<div class="center"></div>
</container>
CSS part:
/*public*/
body,div{
margin: 0;
}
.container{
background: beige;
height: 1000px;
}
/*Centered*/
.center{
width:300px;
height:300px;
margin:auto;
background: aqua;
}
Disadvantage of thi ...
Posted by Smasher on Fri, 01 May 2020 07:06:45 -0700
Object traversal method
Different return values of different methods traversing objects
Pre Code:
function Obj() {
// Add properties directly on this
this.prop_this = 'prop_this';
// Add symbol attribute on this
this[Symbol.for('prop_symbol')] = 'prop_symbol';
}
// Add attribute on Prototype
Obj.prototype.propProto ...
Posted by kenle on Fri, 01 May 2020 04:13:47 -0700
Some black technologies in CSS for novices
Source: http://geek.csdn.net/news/detail/249054?ref=myread
1. The mouse moves into the web page, missing ==
*{
cursor: none!important;
}
2. Simple text blur effect
*{
color: transparent;
text-shadow: #111 0 0 5px;
}
3. Multiple borders
.div {
box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.2), 0 0 0 12px rgba(0, 0, 0, 0.2), 0 0 0 1 ...
Posted by The Merg on Thu, 30 Apr 2020 20:24:47 -0700