ICode9

精准搜索请尝试: 精确搜索
  • css实现添加框color控制变色效果2022-06-04 00:34:11

    实现效果 用border实现边框 伪元素实现加号 鼠标悬浮在框上变色 html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta

  • vue3状态驱动动态css2022-06-03 14:00:58

    - vue3单文件组件的 <style> 标签可以通过 v-bind 这一 CSS 函数将 CSS 的值关联到动态的组件状态上: template <div class="dynamicClass"></div> script     const theme = reactive({ border: '1px solid red', background: 'pink'

  • 7(button的基本属性)2022-05-27 16:32:06

    1.文字大小、颜色 2.自定义背景形状 一、Shape的属性(rectangle、oval、line、ring ) 二、shape的子属性(corners、gradient、padding、size、solid、stroke) 3.自定义按压效果 4.Button控件点击事件(常用方式二) 5.TextViiew控件点击事件     1.文字大小、颜色     2.自定义背景

  • CSS画几何图2022-05-26 22:00:27

    如何画直角梯形、等腰梯形? 首先先试一下,下面这段代码 <div class="box"></div> .box{ width: 100px; height: 100px; border-top: 50px solid orange; border-left: 50px solid blue; border-right: 50px soli

  • css仿小米官网-网页头部的制作2022-05-22 18:00:44

    下面是小米官网网页    现在我们开始制作最顶部黑色部分,设置头部背景颜色;小米网页的元素都是居于网页居中的,设置居中 .header { width: 100%; height: 40px; line-height: 40px; font-size: 12px; background-color: #333; } .wrap { width: 1226px;

  • SOLID学习笔记 - 里氏替换原则2022-05-18 14:31:43

    六大设计原则 单一责任原则 (SRP) 开放封闭原则 (OCP) 里氏替换原则 (LSP) 接口分离原则 (ISP) 依赖倒置原则 (DIP)   里氏替换原则:     “子类型必须可替代其基本类型”。换句话说,给定一个特定的基类,从它继承的任何类都可以替代基类。     错误示例: class LSPDe

  • 如何解决换行与1px像素问题2022-05-10 10:00:07

    文字超出省略用哪个css样式? 单行文字 #box1 { border: 1px solid #ccc; width: 100px; white-space: nowrap; /* 不换行 */ overflow: hidden; text-overflow: ellipsis; /* 超出省略 */ } 多行文字 #box2 { border: 1px solid #ccc; width: 100px;

  • 盒子模型(框模型)——边框2022-05-09 13:31:08

    <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>盒子模型(框模型)——边框</title> <style type="text/css"> /* 边框(border) 不指定宽度,边框

  • 【CSS】绘制一个三角形2022-04-20 21:02:43

    <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minim

  • 盒子模型2022-04-20 01:33:08

    盒子模型 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title>

  • 清除浮动的四种方式2022-04-14 23:31:14

    父元素不写高度时,子元素写了浮动之后,父元素会发生高度塌陷 示例代码: HTML代码: <div class="box"> <div class="box-l">left浮动</div> <div class="box-r">right浮动</div> </div> CSS代码: .box{ width:400px; border:1px solid

  • css - 画三角,鼠标样式,2022-04-03 14:34:57

    画三角形: 高度与宽度设置为0,border上下左右的宽度控制大小 .triangle { width: 0; height: 0; border-top: 10px solid red; border-bottom: 10px solid transparent; border-left: 10px solid transparent; border-right:

  • 盒子模型及边框使用(内外边距及div居中)2022-03-28 21:33:59

    盒子模型:      margin:外边距 padding:内边距 border:边框 边框:   边框的粗细   边框的样式   边框的颜色   1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 7 8

  • css初学2022-03-19 11:35:11

    css的优势 降低耦合度。 解耦让分工协作更容易 提高开发效率 根据定义CSS的位置不同分为 行内样式 <h1 style="color: red;">34</h1> 内部样式(写在HTML页面内) </head> <style> h1{ color: beige; } </style> <body> 外部样式(创建一个css文件,写在文件里面) h1{ co

  • css零到一基础教程017:CSS 边框宽度2022-03-19 10:33:21

    CSS 边框宽度 border-width 属性指定四个边框的宽度。 可以将宽度设置为特定大小(以 px、pt、cm、em 计),也可以使用以下三个预定义值之一:thin、medium 或 thick: 实例 演示不同的边框宽度: p.one { border-style: solid; border-width: 5px; } p.two { border-style: solid;

  • jQuery列表开头2022-03-09 22:02:46

    <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> .box{width:800px; height: 800px; border:1px solid pink; } .left{ bor

  • input框中右面的箭头2022-03-09 14:31:35

    .wxml中代码              <view class="arrowA"></view>   .wxss中代码 .arrowA{   width: 7px;   height: 7px;   border-top: 2px solid #999;   border-right: 2px solid #999;   transform: rotate(45deg);   position: relative;   top

  • 基于行内元素之间不对齐全的方式解决办法(购物车按钮加减数量案例)2022-03-09 12:01:03

    .btn{ display:inline-block; vertical-align:middle; line-height:30px; border:solid 1px #ddd; font-size:14px; text-align:center; padding:0 16px; /*下面鼠标样式 必加 */ cursor:pointer; /* 用户鼠标多次点击不会选中文字*/ user-select:none; } .

  • 实践GoF的23种设计模式:SOLID原则(上)2022-03-01 11:03:23

    摘要:本文以我们日常开发中经常碰到的一些技术/问题/场景作为切入点,示范如何运用设计模式来完成相关的实现。 本文分享自华为云社区《实践GoF的23种设计模式:SOLID原则(上)》,作者:元闰子。 前言 从1995年GoF提出23种设计模式到现在,25年过去了,设计模式依旧是软件领域的热门话题。设计模

  • CSS运用盒子模型划分网页模块2022-02-28 19:34:01

    1.<div>标签 实现网页的规划和布局 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content

  • 每周学习总结一2022-02-27 22:02:57

    一、css3的三角形画法(一)、原理通过对于边框的设置,来画出三角形。 width: 50px; height: 50px; border-bottom: 50px red solid; border-top: 50px green solid; border-left: 50px yellow solid; border-right: 50px blue solid; 当设置盒子的宽高为0时,就是由四个三角形维成的一

  • CSS实现各种形状与画图工具Graphics2D画形状的关系2022-02-22 12:04:36

    CSS实现各种形状 CSS3的一个非常酷的特性是允许我们创建各种规则和不规则形状的图形,从而可以减少图片的使用。以前只能在Photoshop等图像编辑软件中制作的复杂图形现在使用CSS3就可以完成了。通过使用新的CSS属性,像transform和border-radius,我们可以创建非常漂亮和复杂的图形效

  • css快速入门(下)2022-02-17 23:31:50

    css快速入门(下) 七、盒子模型 1、什么是盒子模型 margin:外边距; padding:内边框; border:边框; 2、边框 border:粗细 样式 颜色 边框的粗细 边框的样式 边框的颜色 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>盒子</title>

  • 内外边距及div居中2022-02-10 15:32:02

    内外边距 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <!--外边距的妙用:居中元素 margin: 0 auto; --> <style> #box{ wid

  • Vue 实现表格单元格的原位编辑2022-02-09 20:02:01

    这里写自定义目录标题 Vue 实现表格单元格的原位编辑起初功能问题期待天降大神前来解救。 Vue 实现表格单元格的原位编辑 这里是 Vue 初学者的笔记,老鸟请回避。如果你是热心的前辈,热切期盼您留下宝贵的意见。 起初 有一个小需求,我希望通过浏览器读入 excel 文件,并可以

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有